package com.example.demo.dao;

import com.example.demo.dto.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @ClassName SysRoleMapper
 * @Desecription TODO 1.2新增
 * @Author zzw
 * @Date 2021/4/7 16:08
 * @Version 1.2
 **/
@Mapper
@Repository
public interface SysRoleMapper {
    @Select("SELECT * FROM sys_role WHERE id = #{id}")
    SysRole selectById(Integer id);

    @Select("SELECT * FROM sys_role WHERE name = #{name}")
    SysRole selectByName(String name);
}
